﻿using System;

public static class StringExtensionMethod
{
    /// <summary>
    /// Computes and returns a preformated string to support the given color
    /// </summary>
    /// <param name="String">String to colorize</param>
    /// <param name="Color">Future color of the string</param>
    /// <returns>Color-Preformated string</returns>
    public static string Colorize(this string String, ConsoleColor Color)
    {
        return "<" + Color.ToString() + ">" + String + "</" + Color.ToString() + ">";
    }
}
